package com.pkuefusa.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.pkuefusa.Utils.Result;
import com.pkuefusa.service.TestService;


@Controller
@RequestMapping("/test")
public class TestController {
	
	@Autowired
	private TestService testService;
	
	@RequestMapping("/index")
	@ResponseBody
	public Result index(){
		Result result = new Result();
		result.setCode(testService.getPerson());
		return result;
	}

}
